What is king ai?

King Ai is a figure mentioned in the Bible as the king of the city of Bethel during the time of Joshua's conquest of the Promised Land. According to the Book of Joshua, King Ai refused to submit to the Israelites and instead led his army in an attack against them. However, the Israelites were able to defeat King Ai's army in battle and defeat the city of Bethel. After the battle, King Ai was captured and hanged on a tree until sundown, as punishment for his rebellion against God's chosen people. The story of King Ai serves as an example of the importance of obedience to God and the consequences of disobedience.